﻿using System;

namespace Mediator.Framework.Runtime.Communication
{
    public interface IListner:IDisposable
    {
        IProtocol Protocol
        { 
            get;
        }
        
        IEndpoint LocalEndpoint
        { 
            get;
        }

        IConnection Connect(IEndpoint remoteEndpoint);
    }
}